package tagcloud.component;

import java.awt.Color;
import java.awt.Font;
import java.awt.Point;
import java.awt.Rectangle;

public class DrawBox {
    public String word;
    public Font font;    
    public Rectangle rect;
    public int descent;
    public Color color;

    public DrawBox()
    {
        rect = new Rectangle();
        color = Color.BLACK;
        font = new Font("Tahoma",Font.PLAIN, 15);
    }
    
    public DrawBox(String word, Font font, int width, int height, int xpos, int ypos) {
        this.word = word;
        this.font=font;
        rect = new Rectangle(xpos, ypos, width, height);
    }
    
    public Point getCenter()
    {
        return new Point((int)rect.getCenterX(), (int)rect.getCenterY());
    }
}
